package com.dms.modules.order.event;

import org.springframework.context.ApplicationEvent;

public class OrderEvent extends ApplicationEvent {
    private final Long orderId;
    private final String eventType;
    private final Object data;

    public OrderEvent(Object source, Long orderId, String eventType, Object data) {
        super(source);
        this.orderId = orderId;
        this.eventType = eventType;
        this.data = data;
    }

    public Long getOrderId() {
        return orderId;
    }

    public String getEventType() {
        return eventType;
    }

    public Object getData() {
        return data;
    }
} 